package com.markyao.vo;

import lombok.Data;


public enum ResultCode {

   REGISTER_SUCCESS(1001,"注册成功"),
    REGISTER_USERNAME_EXIST_ERROR(-1001,"用户名已存在"),
    PARMAS_IS_BLANK(-2001,"参数为空"),
    LOGIN_SUCCESS(3001,"登录成功"),
    LOGIN_ERROR(-3001,"用户名或密码错误"),
    TOKEN_NOT_EXIST(-4001,"TOKEN不存在"),
    TOKEN_ERROR(-5001,"TOKEN校验错误"),
    UPDATE_PWD_SUCCESS(6001,"修改密码成功"),
    UPDATE_PWD_ERROR(-6001,"输入的旧密码有误"),
    ADD_SUCCESS(7001,"添加成功")
    ;

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
